import React from 'react'

import {WeaLocaleProvider} from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

import './style'
import ContainerModle from '../../../../common/containerModle'
import AddExtend from './addExtend'
import AddExtendGroup from './addExtendGroup'
import SettingExtend from './settingExtend'
import SettingStyleExtend from './settingStyleExtend'
import SettingProxy from './settingProxy'
import ContainerViewExtend from './containerViewExtend'
import ContainerViewProxy from './containerViewProxy'


export default class Index extends React.Component{

    static defaultProps = {
        javaInterface:{
            find: '/api/portalTsLogin/element/getCommonAbstractImplDataNoUser',
            save: '/api/portalTs/commonAbstractImpl/save',
            update: '/api/portalTs/commonAbstractImpl/update',
            saveOrUpdateItem: '/api/portalTs/commonAbstractImpl/saveOrUpdateItem',
            deleteItem: '/api/portalTs/commonAbstractImpl/deleteItem',
            orderItem: '/api/portalTs/commonAbstractImpl/orderItem',
        },
        defaultValue: {
            e7Bgi : '/wui/theme/ecology7/page/images/login/login_cbg_wev8.png',
            e7Silder : '/wui/theme/ecology7/page/images/login/lg_bg1_wev8.jpg,/wui/theme/ecology7/page/images/login/lg_bg2_wev8.jpg,/wui/theme/ecology7/page/images/login/lg_bg3_wev8.jpg',
        }

    }

    onSaveBeforeHandler = (setting={})=>{
        setting.title = 'E7登录框'

    }


    render(){

        return (
            <ContainerModle ecId={`${this && this.props && this.props.ecId || ''}_ContainerModle@7m2wza`} {...this.props} {...(this.props.location ? this.props.location.query :{})} ContainerViewProxy={ContainerViewProxy} SettingProxy={SettingProxy} onSaveBeforeHandler={this.onSaveBeforeHandler} AddExtend={AddExtend} AddExtendGroup={AddExtendGroup} SettingExtend={SettingExtend} SettingStyleExtend={SettingStyleExtend} ContainerViewExtend={ContainerViewExtend}>
            </ContainerModle>
        )
    }
}